<div class="main_body">
    <?php echo $this->element('main_menu')?>		
	<div id="main_body_content">
			
		<div class="ordersSeries view">
		<h1><?php  __("Orders Series");?></h1>
			<dl><?php $i = 0; $class = ' class="altrow"';?>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Id"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $ordersSeries['OrdersSeries']['id']; ?>
					&nbsp;
				</dd>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Orders"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $this->Html->link($ordersSeries['Orders']['name'], array('controller' => 'orders', 'action' => 'view', $ordersSeries['Orders']['id'])); ?>
					&nbsp;
				</dd>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Employee"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $this->Html->link($ordersSeries['Employee']['name'], array('controller' => 'employees', 'action' => 'view', $ordersSeries['Employee']['id'])); ?>
					&nbsp;
				</dd>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Execution Date"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $ordersSeries['OrdersSeries']['execution_date']; ?>
					&nbsp;
				</dd>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Salary"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $ordersSeries['OrdersSeries']['salary']; ?>
					&nbsp;
				</dd>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Status"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $ordersSeries['OrdersSeries']['status']; ?>
					&nbsp;
				</dd>
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __("Note"); ?></dt>
				<dd<?php if ($i++ % 2 == 0) echo $class;?>>
					<?php echo $ordersSeries['OrdersSeries']['note']; ?>
					&nbsp;
				</dd>
			</dl>
		</div>

		<div class="clr"></div>	
	</div>		
	<?php echo $this->element('languages')?>	
	<div class="clr"></div>
	<br/>
</div>	
<div class="clr"></div>	
<div class="main_action">
	<div class="main_action_content">
			
		<div class="actions">
			<h3><?php __("Actions"); ?></h3>
			<?php if($session->read('Auth.User.group') == 'admin' || $session->read('Auth.User.group') == 'manag'){?>
			<ul>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_series_edit.png'), array('action' => 'edit', $ordersSeries['OrdersSeries']['id']),array('title'=>__("Edit Orders Series", true),'escape'=>false)); ?><div class="clr"></div> <?php echo __("Edit Orders Series", true)?> </li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_series_delete.png'), array('action' => 'delete', $ordersSeries['OrdersSeries']['id']), array('title'=>__("Delete Orders Series", true),'escape'=>false), sprintf(__("Are you sure you want to delete # %s?", true), $ordersSeries['OrdersSeries']['id'])); ?><div class="clr"></div> <?php echo __('Delete Orders Series', true)?> </li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_series.png'), array('action' => 'index'),array('title'=>__("List Orders Series", true),'escape'=>false)); ?><div class="clr"></div> <?php echo __("List Orders Series", true)?> </li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_series_add.png'), array('action' => 'add'),array('title'=>__("New Orders Series", true),'escape'=>false)); ?><div class="clr"></div> <?php echo __("New Orders Series", true)?> </li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_orders_list.png'), array('controller'=>'orders','action' => 'index'),array('title'=>__("List Orders", true),'escape'=>false)); ?> <div class="clr"></div><?php echo __("List Orders",true)?></li>				
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_employees.png'), array('controller' => 'employees', 'action' => 'index'),array('title'=>__("List Employees", true),'escape'=>false)); ?><div class="clr"></div><?php echo __("List Employees", true)?> </li>
				
			</ul>
			<?php }?>
		</div>
		
		<div class="clr"></div>
	</div>		
</div>	